package com.wujian.love.domin;

import lombok.Data;
import net.bytebuddy.implementation.bind.annotation.Default;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;


/**
 * 表 information
 * 
 * @author cdw
 * @date 2020-12-22
 */
@Document(indexName = "information",useServerConfiguration = true,createIndex = false)
@Data
public class Information extends BaseDomin
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	@Id
	private Long id;
	/** 文章类型(1:个人博客;2新闻资讯) */
	private String type;
	/** 标题 */
	@Field(analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
	private String title;
	/** 作者 */
	@Field(analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
	private String author;
	/** 内容 */
	@Field(analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
	private String content;
	/** 点赞次数 */
	private Long likesNumber;
	/** 封面图片路径 */
	private String caverPath;


}
